<?php
$module['name'] = 'Apache';
$module['description'] = 'Maintain apache virtual host configuration.';

switch($action) {
	case 'register':
		break;
	case 'unregister':
		break;
	case 'hook':
		register_hook('web:cfg:default', 'apache_add_cfg');
		register_hook('web:lang', 'apache_add_lang');
		register_hook('web:server:templates', 'apache_template');
		// Server hooks
		register_hook('server:cfg:default', 'apache_add_cfg');
		register_hook('server:domain:sys', 'apache_sys');
		register_hook('server:domain:create', 'apache_domain_create');
		register_hook('server:domain:update', 'apache_domain_update', 1);
		register_hook('server:domain:remove', 'apache_domain_remove');
		register_hook('server:domain:suspend', 'apache_domain_suspend');
		register_hook('server:domain:unsuspend', 'apache_domain_unsuspend');
		register_hook('server:service:monitor', 'apache_monitor');
		register_hook('server:service:start:httpd', 'apache_start');
		register_hook('server:service:stop:httpd', 'apache_stop');
		register_hook('server:service:restart:httpd', 'apache_restart');
		break;
}
?>